import 'package:mall/utils/sc/state_controller.dart';

import '../model/client_entity.dart';
import '../service/client_service.dart';

class ClientSc extends ModelSC<ClientEntity> {

@override
  void onReady() {
    // TODO: implement onReady
    super.onReady();
    refreshData();
  }

  @override
  Future<ClientEntity?> loadData() async {
    final bool isFirst = await ClientService.isFirst();
    ClientEntity model = ClientEntity();
    model.isFirst = isFirst;
    return model;
  }
}
